/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


		    
    $("#login_but").click(function()
    {
        var user=$("#user_txt").val();
        var pass=$("#pass_txt").val();
        $.ajax(
        {
            url:'login.php',
            data:"user="+user+"&pass="+pass,
            type: 'post',
            success: function(j){
                $('#login').fadeOut('fast');
                $('#about_site').fadeOut('fast');
                $("#relative_campaigns").fadeIn('slow');
                $('#login_success').fadeIn('slow');
                $('#login_success').html(j);
                        
            }
        })   ;
    });
          
    $("#signup_submit_but").click(function()
    {
        var user=$("#signup_user").val();
        var pass=$("#signup_pass").val();
        var mail=$("#signup_mail").val();
        var fname=$("#signup_fname").val();
        var lname=$("#signup_lname").val();
        var mobile=$("#signup_mobile").val();
        var gender=$("#signup_gender").val();
        var file=$("#signup_file").val();
        $.ajax(
        {
            url:'signup.php',
            data:"user="+user+"&pass="+pass+"&mail="+mail+"&fname="+fname+"&lname="+lname+"&mobile="+mobile+"&gender="+gender+"&file="+file,
            type: 'post',
            success: function(j){
                $('#login_form').fadeOut('fast');
                $('#login').fadeOut('fast');
                $('#full_back').fadeOut('fast');
                $('#about_site').fadeOut('fast');
                $("#relative_campaigns").fadeIn('slow');
                $('#login_success').fadeIn('slow');
                $('#login_success').html(j);
                        
            }
        })   ;
    });